<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="../Public/style/css/ch-ui.admin.css">
    <link rel="stylesheet" href="../Public/style/font/css/font-awesome.min.css">
    <script type="text/javascript" src="../Public/style/js/jquery.js"></script>
    <script type="text/javascript" src="../Public/style/js/ch-ui.admin.js"></script>
    <script type="text/javascript" src="../Public/layer/layer.js"></script>
    <style>
        .result a,span{
            margin-right:15px;
        }
        .result{
            text-align: center;
            margin-top: 10px;
        }
    </style>
</head>
<body style="background:#F3F3F4;">
<div class="crumb_warp">
    <!--<i class="fa fa-bell"></i> 欢迎使用登陆网站后台，建站的首选工具。-->
    <i class="fa fa-home"></i> <a href="__URL__/info">首页</a> &raquo; 用户管理
</div>
<!--面包屑导航 结束-->

<!--搜索结果页面 列表 开始-->
<form action="#" method="post">
    <div class="result_wrap">
        <!--快捷导航 开始-->
        <div class="result_title">
            <h3>用户管理</h3>
        </div>
        <div class="result_content">
            <div class="short_wrap">

            </div>
        </div>
        <!--快捷导航 结束-->
    </div>

    <div class="result_wrap">
        <div class="result_content">
            <table class="list_tab">
                <tr>
                    <th>usernam</th>
                    <th>emil</th>
                    <th>time</th>
                    <th>touxiang</th>
                    <th>focusid</th>
                    <th>fsnums</th>
                    <th>wbnums</th>
                    <th>fnums</th>
                    <th>修改</th>
                    <th>删除</th>
                </tr>
                <volist name="rows"  id="info">
                    <tr id="<{$info[id]}>">
                        <td><{$info['username']}></td>
                        <td><{$info['emil']}></td>
                        <td><{$info['time']}></td>
                        <td><{$info['touxiang']}></td>
                        <td><{$info['focusid']}></td>
                        <td><{$info['fsnums']}></td>
                        <td><{$info['wbnums']}></td>
                        <td><{$info['fnums']}></td>
                        <td><a href="javascript:" class="">修改</a></td>
                        <td><a href="javascript:" class="del" idx="<{$info[id]}>">删除</a></td>
                    </tr>
                </volist>
            </table>
            <div class="result "><{$page}></div>
        </div>
    </div>
</form>
</body>
<script>
    $('.del').click(function(){
        id=$(this).attr('idx');
        layer.confirm('您确定要删除这个用户吗？', {
            btn: ['确定','取消'] //按钮
        },function() {
            $.get('__URL__/delUser', {val: id}, function (r) {
                if (r == 1) {
                    tobj = document.getElementById(id);
                    tobj.style.display = 'none';
                    location = location;

                }
            });
        })
    });
</script>
</html>